package com.code9xs.service;

import com.alibaba.fastjson.JSONObject;
import com.code9xs.pojo.Application;
import com.code9xs.pojo.Role;
import com.code9xs.pojo.User;
import com.code9xs.util.PageUtil;
import com.code9xs.util.Result;
import org.springframework.security.core.context.SecurityContextHolder;

import java.util.List;
import java.util.Map;

/**
 * @author Suhd
 * @date 2021/4/25
 * @time 13:02
 * @wechat i9xswanan
 * @github https://github.com/Code9xs
 */
public interface UserService {
    boolean reg(JSONObject param);

    boolean joinAssociation(JSONObject param);

    Map<String,Object> getUserPersonalCenter();

    boolean updateUserInfo(User user);

    String getMailCheckCode();

    Result modifyPassword(String newPassword, String key, String checkCoke);

    List<Map<String,Object>> getCurrentUserRoles();

    PageUtil getUserTodo(Integer page, Integer pageSize);

    int getAllToDoCount();
}
